package com.example.javaweb1.service;

import com.example.javaweb1.entity.User;
import com.example.javaweb1.mapper.UserMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserService {
    @Autowired
    UserMapper userMapper;
    public int addUser(User user)throws  Exception{
      return  userMapper.addUser(user);
    }
}
